<?php

namespace App\Http\Controllers\Api;

use App\Models\Banner;
use App\Transformers\BannerTransformer;
use Illuminate\Http\Request;

class BannersController extends Controller
{
    public function index()
    {
        $data = Banner::where('is_show', 1)->paginate();

        return $this->response->paginator($data, new BannerTransformer());
    }
}
